home *** CD-ROM | disk | FTP | other *** search
- import javax.microedition.lcdui.Display;
- import javax.microedition.lcdui.Form;
- import javax.microedition.lcdui.Image;
- import javax.microedition.midlet.MIDlet;
-
- public class Game extends MIDlet {
- public Display display;
- public static int width;
- public static int height;
- public static int fontHeight;
- public static byte[] buffLevel;
-
- public void destroyApp(boolean var1) {
- }
-
- public void exit() {
- this.destroyApp(false);
- ((MIDlet)this).notifyDestroyed();
- }
-
- public static void loadImages() {
- try {
- d.int[0] = Image.createImage("/intro.png");
- d.int[1] = Image.createImage("/gol.png");
- d.int[2] = Image.createImage("/ball2.png");
- d.int[3] = Image.createImage("/ball3.png");
- d.int[4] = Image.createImage("/gol_g1.png");
- d.int[5] = Image.createImage("/gol_g2.png");
- d.int[6] = Image.createImage("/extra.png");
- } catch (Exception var1) {
- ((Throwable)var1).printStackTrace();
- }
-
- }
-
- public void pauseApp() {
- }
-
- public void startApp() {
- b var1 = new b(this, (d)null, (byte)0);
- this.display = Display.getDisplay(this);
- String var2 = System.getProperty("microedition.platform");
- if (var2 == null || !var2.startsWith("SL45") && !var2.startsWith("SL42")) {
- Form var3 = new Form("Error");
- var3.append("Error starting game!");
- this.display = Display.getDisplay(this);
- this.display.setCurrent(var3);
-
- try {
- Thread.sleep(2000L);
- } catch (Exception var4) {
- }
-
- this.exit();
- } else {
- this.display = Display.getDisplay(this);
- this.display.setCurrent(var1);
- }
-
- }
- }
-